<template>
	<view >
		<view class="block-box pad24 mar-t20">
			<view 
				class="cell-li " 
				v-for="(item ,index) in cellList" 
				:key="index"
			>
				<view class="flex-a ju-bt">
					<view class="">
						{{ item.label }}
					</view>
					<u--image
						:showLoading="true" 
						:src="getImg('arrow-right')"
						width="12rpx" 
						height="20rpx"
					></u--image>
				</view>
				<u-line margin="24rpx 0" v-if="index < cellList.length - 1"></u-line>
			</view>
			
		</view>
		<view class="btn-box flex-center mar-t48">
			<view class="btn flex-center" @click="onLogout">
				退出登录
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				cellList: [
					{
						label: "修改密码",
						path: "/pages/my/pages/expendRecord/expendRecord"
					},{
						label: "系统升级说明书",
						path: "/pages/my/pages/expendRecord/expendRecord"
					},{
						label: "用户协议与隐私协议",
						path: "/pages/my/pages/expendRecord/expendRecord"
					},
				]
			}
		},
		onLoad() {
			
		},
		methods: {
			onLogout() {
				uni.reLaunch({
					url: "/pages/login/login"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.btn-box {
		.btn {
			width: 560rpx;
			height: 84rpx;
			background: #FF7171;
			border-radius: 12rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 32rpx;
			color: #FFFFFF;
		}
	}
	.cell-li {
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #333333;
	}
</style>
<style>
	page {
		background: #F5F5F5;
	}
</style>
